From: Florian Müllner Date: Tue, 13 Jun 2017 02:17:39 +0000 (+0200) Subject: remoteMenu: Add actionGroup accessor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~269 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=755698a756668c251b2976389860a89a9d0da345;p=gnome-shell.git remoteMenu: Add actionGroup accessor To avoid recreating the app menu unnecessarily, the panel checks whether the menu's current actionGroup already matches the target one. However as the menu's actionGroup property is currently private, the test always fails, whoops. https://bugzilla.gnome.org/show_bug.cgi?id=781471 --- diff --git a/js/ui/remoteMenu.js b/js/ui/remoteMenu.js index 7d7ebbf89..4aee3d7b1 100644 --- a/js/ui/remoteMenu.js +++ b/js/ui/remoteMenu.js @@ -192,6 +192,10 @@ const RemoteMenu = new Lang.Class({ _removeItem.bind(null, this)); }, + get actionGroup() { + return this._actionGroup; + }, + destroy: function() { this._tracker.destroy(); this.parent();